package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.PurchaseorderDetail;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@RequestMapping("/purchaseOrderDetail")
public interface PurchaseOrderDetailApi {
    @RequestMapping("/selById")
    Dto<List<PurchaseorderDetail>> selByPid(@RequestParam(value = "id")Integer id);
    @RequestMapping("/add")
    Dto<Integer> add(@RequestBody List<PurchaseorderDetail> list);
    @RequestMapping("/delDetail")
    Dto<Integer> del(@RequestParam("purchaseOrderCode") String purchaseOrderCode);
}
